
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="format-detection" content="telephone=no" />
    #parse("/h5/common/webWords.html")
    <link rel="stylesheet" type="text/css" href="http://${staticHost}/css/stcss.css" />
    <link rel="stylesheet" type="text/css" href="http://${staticHost}/css/page.css" />
    <!--  <title>我要考试首页</title>-->
    <script type="text/javascript" src="http://${staticHost}/js/jquery.js"></script>
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <script src="http://${staticHost}/js/layer.js"></script>
    <style type="text/css">
        .editMood{
            color: #333;
        }
        .kc_nav li a{width: 24%;margin: 5px 0%;}
        .global_section .notbegin:after {
            content: "未做";
            background: red;
        }
        .global_section .end:after {
            content: "已做";
            background: #72bf34;
        }
    </style>
    <script type="application/javascript" id="">
        function noLibrary() {
            alert("未添加试题，请等待老师配置后再操作。");
        }

        function showMessage(msg){
            layer.open({
                content: msg
                ,btn: '关闭'
            });
        }

        function loginOut(){
            $.ajax({
                type:'post',
                url:'/edu/auth/loginOut',
                contentType:'application/x-www-form-urlencoded; charset=utf-8',
                success: function (result) {
                    showMessage("您已安全退出梦想在线教育服务系统");
                    window.location.href='/';
                }
            });
        }
    </script>
</head>
<body>
    <div class="dlny clear">
        <dl>
            <dt><a href="/edu/auth/toEditHeadprotrait"><img src="${headPortrait}"></a></dt>
            <dd>
                [${studentName}] <a href="/edu/auth/toEditStudentInfo" class="editMood">${mood}</a>
            </dd>
        </dl>
    </div>
    <div class="kc_nav clear" style="border-bottom: .5rem solid #e6e6e6;">
        <ul>
            <li>
                <a href="/curriculum/auth/courseOnLine"><img src="http://${staticHost}/images/jf01.png"><span>听课学习</span></a>
                <a href="/hw/auth/hwIndex"><img src="http://${staticHost}/images/by01.png"><span>去做作业</span></a>
                <a href="javascript:void(0)"><img src="http://${staticHost}/images/bzr01.png"><span>我要考试</span></a>
                <a href="/studentScore/auth/studentScoreIndex"><img src="http://${staticHost}/images/ckcj.png"><span>查看成绩</span></a>
            </li>
        </ul>
    </div>
    #set($semesterId = 1)
    #set($semesterIds = 1)
    #foreach($form in $!courseList)
    #if($semesterId != $form.id)
    <section class="global_section">
        <span class="title">$form.semesterName</span>
        <div class="content">
        #end
                #if($!form.examRatio > 0 )
                #if($!form.examStatus == 2)
                 <span class='hint end'>
                #else
                 <span class='hint notbegin'>
                #end
                    #if($!form.examRelation > 0)
                    <a href='/exam/auth/examDetail?courseId=$!form.courseId&semesterId=$form.id&courseName=$!form.courseShowName&examStatus=$!form.examStatus'>$!form.courseShowName</a>
                    #else
                    <a href='#' onclick="noLibrary()">$!form.courseShowName</a>
                    #end
                 </span>
                #end

    #set($semesterIds = $form.id)
    #if($semesterId != $form.id && $semesterIds == $semesterId)
        </div>
    </section>
    #end
    #set($semesterId = $form.id)
    #end
    <div class="holderdiv"></div>
    <!--底部 begin -->
    <div class="fixdiv">
        <ul>
            <li><a href="javascript:void(0)" onclick="window.history.go(-1)"><img src="http://${staticHost}/images/foticon001.jpg"><span>返回</span></a></li>
            <li><a href="/edu/auth/modifyPwd"><img src="http://${staticHost}/images/foticon004.jpg"><span>重置密码</span></a></li>
            <li><a href="javascript:void(0)" onclick="loginOut()"><img src="http://${staticHost}/images/foticon003.jpg"><span>退出系统</span></a></li>
        </ul>
    </div>
    <!-- 底部 end -->
</body>
</html>
